<?php
/**
 * 用户处理model
 * Created by Forever.
 * User: Forever
 * Date: 2018/10/03
 * Time: 上午 10:39
 */
namespace app\api\model;
use think\Cache;
use \think\Model;
use \think\Db;
use EasyWeChat\Foundation\Application;
class Product extends Base{

    public function initialize() { }

    public function getShopList($data=[]){
        $where = [
            "id"=>$data['id']
        ];
        $field = "id,name,addtime";
        $res =  Db::name(self::$tb['role'])->where($where)->field($field)->find();
        if($res){
            return $res;
        }else{
            return false;
        }
    }

}
